package com.shitou.shitouproduct.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shitou.shitoucommons.utils.PageUtils;
import com.shitou.shitoucommons.utils.Query;

import com.shitou.shitouproduct.dao.MemberSpuDao;
import com.shitou.shitouproduct.entity.MemberSpuEntity;
import com.shitou.shitouproduct.service.MemberSpuService;


@Service("memberSpuService")
public class MemberSpuServiceImpl extends ServiceImpl<MemberSpuDao, MemberSpuEntity> implements MemberSpuService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MemberSpuEntity> page = this.page(
                new Query<MemberSpuEntity>().getPage(params),
                new QueryWrapper<MemberSpuEntity>()
        );

        return new PageUtils(page);
    }

}
